package com.amiu.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.amiu.shiro.db.permission.Permission;
import com.amiu.shiro.db.permission.PermissionDao;

@Service
public class PermissionService {

	@Autowired PermissionDao permissionDao;
	
	public Map<Long, Permission> findByRoleId(List<Long> roleIds){
		return permissionDao.findByRoleId(roleIds);
	}
	
}
